package com.bnyy.message.bean;

import com.bnyy.message.enums.GroupChatIdentity;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2022/11/11
 **/
public class GroupChatSetting implements Serializable {

    private int id;
    private int wear_id;
    private String imei;
    private int auth_type;
    private int group_type;
    private String group_name;
    private String group_board;
    @SerializedName("no_disturb")
    private boolean isNoDisturb;
    @SerializedName("is_stick")
    private boolean isTopping;
    private GroupChatManage group_admin;
    private ArrayList<ContactGroup.Member> user_list;
    @SerializedName("dynamic_list")
    private ArrayList<RelevantInfo> relevantInfo;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getWear_id() {
        return wear_id;
    }

    public void setWear_id(int wear_id) {
        this.wear_id = wear_id;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public int getAuth_type() {
        return auth_type;
    }

    public void setAuth_type(int auth_type) {
        this.auth_type = auth_type;
    }

    public int getGroup_type() {
        return group_type;
    }

    public void setGroup_type(int group_type) {
        this.group_type = group_type;
    }

    public String getGroup_name() {
        return group_name;
    }

    public void setGroup_name(String group_name) {
        this.group_name = group_name;
    }

    public String getGroup_board() {
        return group_board;
    }

    public void setGroup_board(String group_board) {
        this.group_board = group_board;
    }

    public boolean isNoDisturb() {
        return isNoDisturb;
    }

    public void setNoDisturb(boolean noDisturb) {
        this.isNoDisturb = noDisturb;
    }

    public boolean isTopping() {
        return isTopping;
    }

    public void setTopping(boolean topping) {
        this.isTopping = topping;
    }

    public GroupChatManage getGroup_admin() {
        return group_admin;
    }

    public void setGroup_admin(GroupChatManage group_admin) {
        this.group_admin = group_admin;
    }

    public ArrayList<ContactGroup.Member> getUser_list() {
        return user_list;
    }

    public void setUser_list(ArrayList<ContactGroup.Member> user_list) {
        this.user_list = user_list;
    }

    public ArrayList<RelevantInfo> getRelevantInfo() {
        return relevantInfo;
    }

    public void setRelevantInfo(ArrayList<RelevantInfo> relevantInfo) {
        this.relevantInfo = relevantInfo;
    }

    public GroupChatIdentity getGroupChatIdentity() {
        return GroupChatIdentity.getGroupAuthority(auth_type);
    }

    public static class GroupChatManage implements Serializable {
        private int admin_number;
        private boolean enter_confirm;
        private boolean auth_rename;
        private boolean prohibit_chat;

        public int getAdmin_number() {
            return admin_number;
        }

        public void setAdmin_number(int admin_number) {
            this.admin_number = admin_number;
        }

        public boolean isEnter_confirm() {
            return enter_confirm;
        }

        public void setEnter_confirm(boolean enter_confirm) {
            this.enter_confirm = enter_confirm;
        }

        public boolean isAuth_rename() {
            return auth_rename;
        }

        public void setAuth_rename(boolean auth_rename) {
            this.auth_rename = auth_rename;
        }

        public boolean isProhibit_chat() {
            return prohibit_chat;
        }

        public void setProhibit_chat(boolean prohibit_chat) {
            this.prohibit_chat = prohibit_chat;
        }
    }

    public static class RelevantInfo implements Serializable {

        private String title;
        private boolean is_switch;
        private int type;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public boolean isIs_switch() {
            return is_switch;
        }

        public void setIs_switch(boolean is_switch) {
            this.is_switch = is_switch;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }
    }
}
